package cn.percent.utils;

import com.alibaba.druid.pool.DruidDataSource;


public class DruidUtils {
    private DruidUtils(){}
    private static DruidDataSource druidDataSource = new DruidDataSource();

    static {
        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://172.16.3.219/ymf?characterEncoding=UTF-8");
        druidDataSource.setUsername("crawl");
        druidDataSource.setPassword("crawl123");
    }

    public static DruidDataSource getInstance(){
        return druidDataSource;
    }
}
